package cn.zysuyuan.item.service;

import cn.zysuyuan.common.entity.PageResult;
import cn.zysuyuan.item.entity.Medicinal;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2019-11-18 14:48
 */
public interface MedicinalService {

    PageResult<Medicinal> selectList(Map<String, Object> map);

    int insert(Medicinal medicinal);

    int update(Medicinal medicinal);

    int delete(String id,String imgPath,String mOriginImgPath);

    Map<String, Object> saveImg(MultipartFile file,Map<String, Object> map);
}
